﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KerriganService
{
    public static class CommonConstant
    {
        public const string  clientaccesspolicy = @"<?xml version=""1.0"" encoding=""utf-8""?>
            <access-policy>
                <cross-domain-access>
                    <policy>
                        <allow-from http-request-headers=""*"">
                            <domain uri=""*""/>
                        </allow-from>
                        <grant-to>
                            <resource path=""/"" include-subpaths=""true""/>
                        </grant-to>
                    </policy>
                </cross-domain-access>
            </access-policy>";

        public const string crossdomain = @"<?xml version=""1.0""?>
            <!DOCTYPE cross-domain-policy SYSTEM ""http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"">
            <cross-domain-policy>
                <allow-access-from domain=""*"" />
            </cross-domain-policy>";


        //Category
        public static Dictionary<int, string> Category = new Dictionary<int, string>() {
            {1, "M 1"},
            {2, "M 2"},
            {3, "M 3"},
            {4, "A 2"},
        };


        //Type
        public static Dictionary<int, string> Offer_Type_M1 = new Dictionary<int, string>() {
            {1, "Session"},
            {2, "Stage"}
        };

        public static Dictionary<int, string> Session_Type_M2 = new Dictionary<int, string>() {
            {3,"Session"},
            {4, "Stage"}
        };

        public static Dictionary<int, string> Session_Type_M3 = new Dictionary<int, string>() {
            {5, "Stage"}
        };
        public static Dictionary<int, string> Offer_Type_A2 = new Dictionary<int, string>() {
            {16, "Session"}
        };




        //SubType

        public static Dictionary<int, string> Offer_Stage_Type_M2 = new Dictionary<int, string>() {
            {7, "1 day on circuit"},
            {9, "1 week"}
        };

        public static Dictionary<int, string> Offer_Courses_Type_M2 = new Dictionary<int, string>() {
            {4, "curcuit"},
            {5, "traffic"}
        };

        public static Dictionary<int, string> Offer_Type_M3 = new Dictionary<int, string>() {
            {13, "Level 1"},
            {14, "Level 2"},
            {15, "Level 3"}
        };



        public static Dictionary<int, Dictionary<int, string>> itemsource_type = new Dictionary<int, Dictionary<int, string>>() {
            {1, Offer_Type_M1},
            {2, Session_Type_M2},
            {3, Session_Type_M3},
            {4, Offer_Type_A2},
        };

        public static Dictionary<int, Dictionary<int, string>> itemsource_subtype = new Dictionary<int, Dictionary<int, string>>() {
            {1, new Dictionary<int, string>()},
            {2, new Dictionary<int, string>()},
            {3, Offer_Courses_Type_M2},
            {4, Offer_Stage_Type_M2},
            {5, Offer_Type_M3},
            {16, new Dictionary<int, string>()}
        };

    }
}